package com.express.service.impl;

import com.express.entity.Parameter;
import com.express.service.SysParameterService;
import com.express.sys.mapper.SysParameterMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class SysParameterServiceImpl implements SysParameterService {

    private static final Logger logger = LoggerFactory.getLogger(SysParameterServiceImpl.class);

    @Autowired
    SysParameterMapper sysParameterMapper;

    @Override
    public List<Parameter> query() {
        return Collections.emptyList();
    }

    @Override
    public Parameter getOne(String key) {
        return sysParameterMapper.selectOne(key);
    }

    @Override
    public int update(Parameter parameter) {
        return sysParameterMapper.update(parameter);
    }


}
